package com.david.viewtest.view

import android.content.Context
import android.util.AttributeSet
import android.util.Log
import androidx.recyclerview.widget.RecyclerView

class SlideRecyclerView(context: Context, attr: AttributeSet?): RecyclerView(context, attr) {

    init {
        //addOnScrollListener(object : OnScrollListener() {
        //    override fun onScrollStateChanged(recyclerView: RecyclerView, newState: Int) {
        //        super.onScrollStateChanged(recyclerView, newState)
        //        Log.e("scroll", "onScrollStateChanged:$newState")
        //    }
        //
        //    override fun onScrolled(recyclerView: RecyclerView, dx: Int, dy: Int) {
        //        super.onScrolled(recyclerView, dx, dy)
        //        Log.e("scroll", "onScrolled:$dy")
        //
        //    }
        //})
    }
}